package com.xiao.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

public class AfterLog implements AfterReturningAdvice {
//    返回之后的advice，多了一个返回值
//    returnvalue:返回值
    public void afterReturning(Object returnValue, Method method, Object[] args, Object o1)
            throws Throwable {
        System.out.println("执行" + method.getName() + "方法，返回结果是：" + returnValue);
    }
}
